package xyz.zdsoft.course_manage_module.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.zdsoft.common.utils.Result;
import xyz.zdsoft.course_manage_module.service.AdminDeleteCourseService;
import javax.annotation.Resource;

@RestController
@Api(tags = "管理员课程管理")
public class AdminDeleteCourseController {
    @Resource
    private AdminDeleteCourseService adminDeleteCourseService;
    @ApiOperation("删除课程")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "courseOnId",value = "课程安排id",required = true)
    })
    @PostMapping("/DeleteCourse")
    public Result DeleteCourse(Integer courseOnId){
        return adminDeleteCourseService.deleteCourse(courseOnId);
    }
}
